//package com.atguigu.gulimall.product.controller;
//
//import com.atguigu.gulimall.product.fegin.feginTest;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//import javax.servlet.http.HttpServletRequest;
//
//@RestController
//@RequestMapping("fegin2")
//@Slf4j
//public class Test002 {
//    @Resource
//    feginTest test;
//
//    @RequestMapping(value = "test2", method = RequestMethod.POST)
//    public String test1(HttpServletRequest request) {
//        String type = request.getHeader("type");
//        log.info("接受到hearder的一个信息为" + type);
//        return test.test001();
//    }
//}
